package com.liuqi.aiagent.mapper;

import com.liuqi.aiagent.transfer.entity.Model;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author liuqi
 * @date 2025/7/15
 **/
@Repository
@Mapper
public interface ModelMapper {

    int save(Model model);

    int edit(Model model);

    int delete(int id);

    Model findById(int id);

    Model findByName(String name);

    List<Model> findAll();

    List<Model> findAllByType(String type);

}
